﻿using System.Configuration;

namespace XYAC.Framework.WohuaMesExtend.IHI.Extensions
{
    public class ConfigHelper1
    {
        public static readonly string OracleConnectionString = ConfigurationManager.ConnectionStrings["Oracle"].ConnectionString;
        public static readonly string AccessIHIConnectionString = ConfigurationManager.ConnectionStrings["AccessIHI"].ConnectionString;
        public static readonly string AccessIHIBaseConnectionString = ConfigurationManager.ConnectionStrings["AccessIHIBase"].ConnectionString;
        public static string GetSelection(string key)
        {
            return ConfigurationManager.GetSection(key)?.ToString();
        }
        public static string GetAppSetting(string key)
        {
            return ConfigurationManager.AppSettings.Get(key)?.ToString();
        }
    }
}
